package com.yb.action;

import com.opensymphony.xwork2.ActionSupport;
import com.yb.entity.User;
import com.yb.service.userService;


public class userAction extends ActionSupport {

	private userService userservice;

	private int id;

	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public void setUserservice(userService userservice) {
		this.userservice = userservice;
	}

	public String execute() throws Exception {

		user = userservice.getById(id);

		return SUCCESS;
	}

}
